package com.example.ResumeWorkPlatform.dao;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;



/**
 * @ClassName:  DepartmentDao
 * @Description: 部门Dao
 * @Author chengweinxg
 * @DateTime 2021-03-29 16:52:58
 */
@Repository
public interface DepartmentDao extends JpaRepository<DepartmentEntity,Long>{
	
	/**
	 * 根据部门名称和是否删除获取信息
	 * @param departmentName
	 * @DateTime 2021-03-20 13:35:01 
	 * @param delFlag
	 * @return
	 */
	DepartmentEntity findByDepartmentNameAndDelFlag(String departmentName,boolean delFlag);
	/**
	 * 
	 * @Title: findByIdAndDelFlag
	 * @Description: 根据ID和删除标识查找
	 * @param studentname
	 * @DateTime 2021-03-20 13:35:01 
	 * @param id
	 * @param delFlag
	 * @return
	 */
	DepartmentEntity findByDelFlag(boolean delFlag);	
	/**
	 * 
	 * @Title: findByIdAndDelFlag
	 * @Description: 根据ID和删除标识查找
	 * @param studentname
	 * @DateTime 2021-03-20 13:35:01 
	 * @param id
	 * @param delFlag
	 * @return
	 */
	DepartmentEntity findByDepartmentIdAndDelFlag(Long departmentId,boolean delFlag);

}


